package com.aaa.service.xg.impl;

import com.aaa.dao.xg.TesterFpaDao;
import com.aaa.pojo.TesterFpa;
import com.aaa.service.xg.TesterFpaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class TesterFpaServiceImpl implements TesterFpaService {
    @Autowired
    private TesterFpaDao testerFpaDao;
    @Override
    public List<Map<String, Object>> findFpaTesterByPhone(String phone) {
       return testerFpaDao.findFpaTesterByPhone(phone);
    }

    @Override
    public List<Map<String, Object>> findSasTesterByPhone(String phone) {
        return testerFpaDao.findSasTesterByPhone(phone);
    }

    @Override
    public List<Map<String, Object>> findSdsTesterByPhone(String phone) {
        return testerFpaDao.findSdsTesterByPhone(phone);
    }

    @Override
    public TesterFpa insert(TesterFpa testerFpa) {
         this.testerFpaDao.insert(testerFpa);
         return testerFpa;
    }
}
